.class Les/ey$d;
.super Ljava/lang/Object;
.source "HomeTabLayoutManager.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/ey;-><init>(Landroid/app/Activity;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/ey;


# direct methods
.method constructor <init>(Les/ey;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/ey$d;->a:Les/ey;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    .line 1
    :try_start_0
    iget-object v0, p0, Les/ey$d;->a:Les/ey;

    invoke-static {v0}, Les/ey;->a(Les/ey;)Landroid/app/Activity;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Les/ey$d;->a:Les/ey;

    invoke-static {v0}, Les/ey;->a(Les/ey;)Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->isFinishing()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Les/ey$d;->a:Les/ey;

    invoke-static {v0}, Les/ey;->c(Les/ey;)Lcom/google/android/material/tabs/TabLayout;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Les/ey$d;->a:Les/ey;

    invoke-static {v0}, Les/ey;->c(Les/ey;)Lcom/google/android/material/tabs/TabLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/HorizontalScrollView;->findFocus()Landroid/view/View;

    move-result-object v0

    .line 3
    iget-object v1, p0, Les/ey$d;->a:Les/ey;

    invoke-static {v1}, Les/ey;->c(Les/ey;)Lcom/google/android/material/tabs/TabLayout;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/HorizontalScrollView;->getFocusedChild()Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_0

    if-eqz v0, :cond_0

    .line 4
    invoke-virtual {v1}, Landroid/view/View;->getId()I

    move-result v1

    .line 5
    invoke-virtual {v0}, Landroid/view/View;->getId()I

    move-result v2

    if-ne v1, v2, :cond_0

    const v1, 0x7f0800e3

    .line 6
    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 7
    :cond_0
    iget-object v0, p0, Les/ey$d;->a:Les/ey;

    invoke-static {v0}, Les/ey;->d(Les/ey;)Landroid/os/Handler;

    move-result-object v0

    const-wide/16 v1, 0x3e8

    invoke-virtual {v0, p0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 8
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return-void
.end method
